@(grps: List[Group])

@import helper._

@main {

  @if(grps.size > 0) {
    
    <div class="panel-body">
      <table class="table">
        <thead>
          <tr>
            <th><b>@Messages("grp.name.col")</b></th>
            <th><b>@Messages("grp.home.page.col")</b></th>
            <th></th>
          </tr>
        </thead>
        <tbody>
        @grps.map { grp =>
          <tr>
            <td>@grp.name</td>
            <td>@grp.homePage</td>
            <td>
              <a class="pull-right" href="@routes.Groups.edit(grp.id.get)">
                <span class="glyphicon glyphicon-edit"></span>
              </a>
            </td>
          </tr>
        }
        </tbody>
      </table>
    </div>
    
  } 
}